<?php
/**
 * Created by yuxianjun001@icloud.com
 * User: yuxianjun
 * Date: 2018/3/13 0013
 * Time: 下午 5:36
 */

namespace App\helpers;


class OsHelper
{
    /**
     * 判断当前操作系统是win（1）还是linux,其他（-1）
     */
    public  static  function telOs(){
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            return 1;
        } else {
            return -1;
        }
    }
}